package com.freshmarket.freshmarket.service;

import com.freshmarket.freshmarket.controller.result.ShoppingCartResult;
import com.freshmarket.freshmarket.controller.result.ShoppingCartUserCouponsResult;
import com.freshmarket.freshmarket.entity.Coupon;
import com.freshmarket.freshmarket.entity.ShoppingCar;
import com.baomidou.mybatisplus.extension.service.IService;
import com.freshmarket.freshmarket.entity.UserCoupon;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Squirrel
 * @since 2020-09-07
 */
public interface IShoppingCarService extends IService<ShoppingCar> {
    List<ShoppingCartResult> updateShoppingCart(Integer userId, Integer productId, Integer productNum);

    public List<ShoppingCartResult> getShoppingCart(Integer userId);
    public List<ShoppingCartUserCouponsResult> getCoupons(Integer userId);
    //购物车添加商品
    public void addCar(ShoppingCar shoppingCar);
}
